﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using FileDFS.Model.Enum;
using System.IO;
/*
 * Coder:Tieria
 * WriteTime:2015.5.17
 * FileName:ThumbnailDownloadResult.cs
 * ReMark:下载某个图片的缩略图返回实体
 */
namespace FileDFS.Model
{
    [Serializable]
    [MessageContract]
    public class ThumbnailDownloadResult
    {
        /// <summary>
        /// 下载的唯一标识符
        /// </summary>
        [MessageHeader]
        public int DownloadId { get; set; }
        /// <summary>
        /// 下载的路径
        /// </summary>
        [MessageHeader]
        public string DownloadPath { get; set; }
        /// <summary>
        /// 文件扩展名
        /// </summary>
        [MessageHeader]
        public ImageExtensionEnum Extension { get; set; }
        /// <summary>
        /// Stream数据源
        /// </summary>
        [MessageBodyMember]
        public Stream DataSource { get; set; }
    }
}
